package com.yyq.adms.zz.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.sos.pojo.BaseEntity;

@Entity
@Table(name = "writings")
public class Writings extends BaseEntity  implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -862656601154422646L;
	private String projectName; //名称
	private String ISBN; //ISBN号
	private String author; //作者
	private String publisher; //出版社
	private Date publishdate; //出版时间
	//private String sentDep; //报送单位
	private String belongPlateFormID; //所属平台
//	private int isGlobal; //是否全局可见
//	private int isHavePatents; //是否有附件
	private int isEnabled; //
//	private int sourceID; //源数据
	
	
	/**
	 * 所属年份，不需要加入数据库
	 */
	private String belongYear;

	/**
	 * 批注
	 */
	private String endorse;
	
	
	/**
	 * 单位名称
	 */
	private String sentDepName;
	
	@Transient
	public String getBelongYear() {
		return belongYear;
	}
	public void setBelongYear(String belongYear) {
		this.belongYear = belongYear;
	}
	
	@Column(name = "projectname")
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	@Column(name = "isbn")
	public String getISBN() {
		return ISBN;
	}
	public void setISBN(String ISBN) {
		this.ISBN = ISBN;
	}
	@Column(name = "author")
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	@Column(name = "publisher")
	public String getPublisher() {
		return publisher;
	}
	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}
	@Column(name = "publishdate")
	public Date getPublishdate() {
		return publishdate;
	}
	public void setPublishdate(Date publishdate) {
		this.publishdate = publishdate;
	}
	/*@Transient
	public String getSentDep() {
		return sentDep;
	}
	public void setSentDep(String sentDep) {
		this.sentDep = sentDep;
	}*/
	@Column(name = "belongplateformid")
	public String getBelongPlateFormID() {
		return belongPlateFormID;
	}
	public void setBelongPlateFormID(String belongPlateFormID) {
		this.belongPlateFormID = belongPlateFormID;
	}
//	@Column(name = "isglobal")
//	public int getIsGlobal() {
//		return isGlobal;
//	}
//	public void setIsGlobal(int isGlobal) {
//		this.isGlobal = isGlobal;
//	}
//	@Column(name = "ishavepatents")
//	public int getIsHavePatents() {
//		return isHavePatents;
//	}
//	public void setIsHavePatents(int isHavePatents) {
//		this.isHavePatents = isHavePatents;
//	}
	@Column(name = "isenabled")
	public int getIsEnabled() {
		return isEnabled;
	}
	public void setIsEnabled(int isEnabled) {
		this.isEnabled = isEnabled;
	}
//	@Column(name = "sourceid")
//	public int getSourceID() {
//		return sourceID;
//	}
//	public void setSourceID(int sourceID) {
//		this.sourceID = sourceID;
//	}

	@Column(name="endorse")
	public String getEndorse() {
		return endorse;
	}

	public void setEndorse(String endorse) {
		this.endorse = endorse;
	}

	@Column(name="sentdepname")
	public String getSentDepName() {
		return sentDepName;
	}

	public void setSentDepName(String sentDepName) {
		this.sentDepName = sentDepName;
	}
	
	
}
